Brought to you by EarthWeb
ITKnowledge Logo Login Graphic Track those bugs. Learn how right here.
Track those bugs. Learn how right here.
ITKnowledge
Search this book:
 
Search the site:
 

Search Tips
EXPERT SEARCH
nav
arrow FEEDBACK

Dice Job Search EarthWeb Direct Fatbrain Auctions Support Source Answers Intraware

EarthWeb sites
Crossnodes
Datamation
Developer.com
DICE
EarthWeb.com
EarthWeb Direct
EarthWeb Events
ERP Hub
Gamelan
GoCertify.com
HTMLGoodies
Intranet Journal
IT Knowledge
IT Library
JavaGoodies
JARS
JavaScripts.com
open source IT
Perl Journal
RoadCoders
SysOpt.com
Y2K Info

EarthWeb
International

Previous Table of Contents Next


The Print Process

To help you understand the actual print process, the following steps explain how Windows NT produces print jobs. The printing device in this example is connected to a remote Windows NT print server, and the print job is from a standard Windows application.

1.  The print driver is loaded. If the driver is not found locally, it will be downloaded from the print server. This means that the print server must contain the correct processor type and software version of the driver for this client. If the client does have a locally installed driver, it will be compared to the print server driver version. If the print server is a later revision than the driver already on the client, it will be downloaded. If it isn’t, the local driver will be used.
2.  The application print output file is used with the print driver to generate an output journal file.
3.  The journal file is sent to the spooler, which passes it on to the appropriate print processor.
4.  The print processor uses the journal file to produce the raw print data.
5.  The spooler on the client computer takes the raw data file and routes it to the spooler on the print server. (This step is not needed if the printer is locally attached.)
6.  The spooler on the print server sends the raw data file to the print monitor.
7.  The print monitor sends the file to the relevant port to be printed.

Print Monitors

Print monitors are used with the Windows NT print system to control the connection to the I/O port to which the actual print device is connected. This port could be a local, remote, or network port. Table 6.2 shows the default print monitors and their functions.

Table 6.2 Print monitors.

Monitor Function and Uses

DECPSMAN.DLL Digital network-attached print devices; can use either the TCP/IP or DECnet protocol. DECnet is not supplied with Windows NT.
HPMON.DLL HP JetDirect network adapters; uses the DLC protocol only.
LOCALMON.DLL Local I/O ports; e.g., LPT1 or COM1.
LPRMON.DLL LPD print servers; usually Unix hosts.
NWMON.DLL Pserver print devices; usually used in NetWare configurations.
PJLMON.DLL Printer job language monitor; used to monitor the status of the print device.
SFMMON.DLL AppleTalk network-attached printers.

Print Separator Files

Print separator files, often called flag, burst, or banner pages, are used to separate print jobs. Windows NT includes three default separator files, which are located in the %systemroot%system32 folder. These files contain the necessary codes for switching HP printing devices between PCL (Printer Control Language) and PostScript. The files can be used as templates to create your own separator files. Table 6.3 shows some of the most useful escape codes that can be placed in separator files.

Table 6.3 Separator escape codes and functions.

Escape Code Function

\ Must be the only character on the first line of the separator file.
\x Line feeds x number of lines. Line feed of 0 moves printing to next line.
\D Prints the date when the job is printed.
\E Indicates the end of a separator file, and ejects the page.
\Hxx Sends the ASCII escape sequence to the printing device.
\L All characters following this command are printed. Command turned off when any other escape code is reached.

The following separator escape codes can be used to produce a simple separator page containing the username, the job number, and the date when the job was submitted.

  FLAG1.SEP\
  \Luser name = \N\0
  \Ljob number = \I\0
  \Ldate = \D\0
  \E

Printer Pools

An unlimited number of print devices can be combined into a printer pool. The printer pool is seen by users as a single printer to which they submit their print jobs. The print spooler will take care of routing the print jobs to every available print device in the pool. Because the print devices are seen as a single printer, they must all be the same device type.

Printer Scheduling And Priorities

Printer scheduling can be used to set the hours a printer is available. However, unlike the Hours function provided with User Manager For Domains, which allows the days as well as hours to be set, printer scheduling is restricted to hours only. The default is for the printer to be available at all times.

Printer priorities can be configured on an individual printer basis from 1 to 99, with the lowest priority being 1. When two printers are configured to use the same print device, frequently one printer is configured at a higher priority than the other. Print priorities can be used so that priority print jobs receive preferential access to the print device.

Both printer scheduling and printer priorities are configured by using the Printer Properties Scheduling page, as shown in Figure 6.2.


Figure 6.2  The Printer Properties Scheduling page.

Print Forms

Print forms are defined on a per-print server basis—a print server in this case is either a Windows NT Workstation or Server. Print forms are defined by using the Server Properties window accessed from the Printers window. These forms define the basic print area. The paper width and height can also be defined, as well as the left, right, top, and bottom margins.

A large number of predefined print forms are provided for all standard paper and envelope sizes. If required, these can be used as templates for creating your own specific forms. Print forms must be assigned to the correct print device paper tray, which is done by using the Printer Properties Device Settings tab. An example of configuring print forms is given in the Practical Guide.

Projects:
Practical Guide To Printing

The following section provides real-life examples and step-by-step instructions on how to administrate and use the Windows NT print system. The print system is administrated by using the Printers window. This window can be accessed in several ways, including via the My Computer icon or the Control Panel. Although the following examples access this window from the Start button, any method is valid.


Previous Table of Contents Next
HomeAbout UsSearchSubscribeAdvertising InfoContact UsFAQs
Use of this site is subject to certain Terms & Conditions.
ITKnowledge.com Copyright (c) 1996-1999 EarthWeb Inc. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.